body{
  width: 400px;
  display: flex;
  justify-content: center;
  border-radius: 10px;
}
.cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cards .red {
  background-color: #f43f5e;
  position: relative;
}

.cards .card .image{
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  right: 4px;
  top: 4px
}

.cards .card .image2{
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  left: 4px;
  top: 4px
}

.cards .blue {
  background-color: #3b82f6;
  position: relative;
}

.cards .blue .time1 span{
  display: inline-block;
}

.cards .blue .time1 .timeBox{
  width: 20px;
  text-align: center;
}

.cards .green {
  background-color: #22c55e;
  position: relative;
  display: flex

}

.cards .green .timeBox{
  width: 20px;
  text-align: center;
  display: inline-block;
}

.cards .card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 100px;
  width: 350px;
  border-radius: 10px;
  color: white;
  transition: 400ms;
}

.cards .card p.tip {
  font-size: 1em;
  font-weight: 700;
}

.cards .card p.second-text {
  font-size: .7em;
}

.cards .card:hover {
  transform: scale(1.1, 1.1);
}

.cards:hover > .card:not(:hover) {
  transform: scale(0.9, 0.9);
}

.toggleWrapper {
  position: absolute;
  left: 50%;
  top: 12px;
  overflow: hidden;
  padding: 0 40px;
  transform: translate3d(-50%, -50%, 0);
  color: white;
}

.toggleWrapper .input {
  position: absolute;
  left: -99em;
}

.toggle {
  cursor: pointer;
  display: inline-block;
  position: relative;
  width: 35px;
  height: 20px;
  background-color: #83d8ff;
  border-radius: 54px;
  transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.toggle:before {
  content: "早班";
  position: absolute;
  left: -35px;
  top: -1px;
  font-size: 14px;
}

.toggle:after {
  content: "夜班";
  position: absolute;
  right: -35px;
  top: -1px;
  font-size: 14px;
  color: #749ed7;
}

.toggle__handler {
  display: inline-block;
  position: relative;
  z-index: 1;
  top: 2px;
  left: -8px;
  width: 16px;
  height: 16px;
  background-color: #ffcf96;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: rotate(-45deg);
}

.toggle__handler .crater {
  position: absolute;
  background-color: #e8cda5;
  opacity: 0;
  transition: opacity 200ms ease-in-out;
  border-radius: 100%;
}

.toggle__handler .crater--1 {
  top: 7px;
  left: 5px;
  width: 2px;
  height: 2px;
}

.toggle__handler .crater--2 {
  top: 10px;
  left: 8px;
  width: 3px;
  height: 3px;
}

.toggle__handler .crater--3 {
  top: 3px;
  left: 9px;
  width: 4px;
  height: 4px;
}

.input:checked + .toggle .toggle__handler .crater {
  opacity: 1;
}

.input:checked + .toggle {
  background-color: #749dd6;
}

.input:checked + .toggle:before {
  color: #749ed7;
}

.input:checked + .toggle:after {
  
  color: #fff;
}

.input:checked + .toggle .toggle__handler {
  background-color: #ffe5b5;
  transform: translate3d(15px, 0, 0) rotate(0);
}

.star {
  position: absolute;
  background-color: #fff;
  transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
  border-radius: 50%;
}

.star--1 {
  top: 3px;
  left: 15px;
  z-index: 0;
  width: 15px;
  height: 1px;
}

.star--2 {
  top: 9px;
  left: 15px;
  z-index: 1;
  width: 15px;
  height: 1px;
}

.star--3 {
  top: 6px;
  left: 12px;
  z-index: 0;
  width: 15px;
  height: 1px;
}

.star--4,
.star--5 {
  opacity: 0;
  transition: all 300ms 0 cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.star--4 {
  top: 16px;
  left: 11px;
  z-index: 0;
  width: 2px;
  height: 2px;
  transform: translate3d(3px, 0, 0);
}

.star--5 {
  top: 13px;
  left: 6px;
  z-index: 0;
  width: 2px;
  height: 2px;
  transform: translate3d(3px, 0, 0);
}

.input:checked + .toggle .star--1 {
  width: 1px;
  height: 1px;
}

.input:checked + .toggle .star--2 {
  width: 2px;
  height: 2px;
  transform: translate3d(-5px, 0, 0);
}

.input:checked + .toggle .star--3 {
  width: 1px;
  height: 1px;
  transform: translate3d(-7px, 0, 0);
}

.input:checked + .toggle .star--4,
.input:checked + .toggle .star--5 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.input:checked + .toggle .star--4 {
  transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.input:checked + .toggle .star--5 {
  transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}